package com.startsola;

import java.util.Date;

public class LoginMain {

    static String ID = "ga1zf7o4Rg==";
    static String loginUrl = "https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxnewloginpage?ticket=Afk8oP9wvJvLgHn8v0K1ce2t@qrticket_0&uuid=wftXJhAHyQ==&lang=zh_CN&scan=1559702663";

    public static void main(String[] args) {


        try {
//            run();
            login();
//            checkLogin();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    private static void checkLogin() throws Exception {
        String result = HttpClientService.sendGet(String.format("https://login.weixin.qq.com/cgi-bin/mmwebwx-bin/login?uuid=%s&tip=1&_=%s", ID, new Date().getTime()));

        System.out.println(result);
    }
    private static void login() throws Exception {
        String result = HttpClientService.sendGet(String.format("https://login.weixin.qq.com/qrcode/%s?t=webwx", ID));

        System.out.println(result);
    }
    private static void run() throws Exception {
        String result = HttpClientService.sendGet("https://login.weixin.qq.com/jslogin?appid=wx782c26e4c19acffb&redirect_uri=https%3A%2F%2Fwx.qq.com%2Fcgi-bin%2Fmmwebwx-bin%2Fwebwxnewloginpage&fun=new&lang=zh_CN&_=" + new Date().getTime());

        System.out.println(result);
    }
}
